package com.WISSC.util.file;

import java.io.File;

/**
 * <p>
 *
 * </p>
 *
 * @author 张凯
 * @since 2019/6/18
 */
public class demo {

    public static void main(String[] args) {

        //构造函数File(String pathname)
        File f1 = new File("c:\\abc\\1.txt");
        //File(String parent,String child)
//        File f2 = new File("c:\\abc", "2.txt");
//        //File(File parent,String child)
//        File f3 = new File("c:" + File.separator + "abc");//separator 跨平台分隔符
//        File f4 = new File(f3, "3.txt");
//        System.out.println(f1);//c:\abc\1.txt

    }
}
